package leetCode.sample;

import javafx.util.Pair;

import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class PossibleOrderSolution {
    public static void main(String[] args) {

    }

    List<Integer> possibleOrder(List<Pair<Integer, Integer>> input) {
        //write your code here
        Set<Integer> allNums = input.stream().flatMap((pair ->
                Stream.of(pair.getKey(), pair.getValue()))).collect(Collectors.toSet());


        return null;
    }

}
